package ru.ssau;

import java.rmi.RemoteException;
import java.util.Collection;
import javax.ejb.EJBObject;
import lab.domain.*;

/**
 *
 * @author Smike
 */
public interface CollectionDAOBeanRemote extends EJBObject {

    public String getDemo() throws RemoteException;
    public Collection<ID3v1Tag> findTags() throws RemoteException;
    public Collection<Artist> findArtists() throws RemoteException;
    public Collection<Genre> findGenres() throws RemoteException;
    public Collection<Track> findTracks() throws RemoteException;
    public Collection<SoundRecordingStudio> findStudios() throws RemoteException;
    
    public Track findTrack(int id) throws RemoteException;
    public Genre findGenre(int id) throws RemoteException;
    public SoundRecordingStudio findStudio(int id) throws RemoteException;
    public Artist findArtist(int id) throws RemoteException;
    
    public void updateTrack(Track track) throws RemoteException;
    public void updateArtist(Artist artist) throws RemoteException;
    public void updateGenre(Genre genre) throws RemoteException;
    public void updateStudio(SoundRecordingStudio studio) throws RemoteException;
    
    public void insertTrack(Track track) throws RemoteException;
    public void insertArtist(Artist artist) throws RemoteException;
    public void insertGenre(Genre genre) throws RemoteException;
    public void insertStudio(SoundRecordingStudio studio) throws RemoteException;
    
    public void deleteTrack(Track track) throws RemoteException;
    public void deleteArtist(Artist artist) throws RemoteException;
    public void deleteGenre(Genre genre) throws RemoteException;
    public void deleteStudio(SoundRecordingStudio studio) throws RemoteException;

    
}
